-
Notifications
You must be signed in to change notification settings - Fork 30
[ENH] sklearn style pretty printing
#156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| with suppress(AttributeError): | ||
| return base_object._sk_visual_block_() | ||
|
|
||
| if isinstance(base_object, str): |
Check warning
Code scanning / CodeQL
Unreachable code
| super().__init__(indent, width, depth, stream, compact=compact) | ||
| self._indent_at_name = indent_at_name | ||
| if self._indent_at_name: | ||
| self._indent_per_level = 1 # ignore indent param |
Check warning
Code scanning / CodeQL
Overwriting attribute in super-class or sub-class
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## main #156 +/- ##
==========================================
+ Coverage 82.68% 82.92% +0.24%
==========================================
Files 32 39 +7
Lines 2327 2799 +472
==========================================
+ Hits 1924 2321 +397
- Misses 403 478 +75
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Fixes #17.
This implements
sklearnpretty printing directly inskbasewith some minor tweaks.Based on #150 by @RNKuhns, but removes the strong coupling to the new global config interface, as well as the global config interface that imo has nothing to do (or should have nothing to do) with that PR.
I think the global config interface still needs some work, and according to my comments in #150, it should be entirely uncoupled, or more precisely, coupled only via
get_config.(the alternative would be coupling it to every place where a config - local or global - is used, which is bad design)